import { requestMockFloors } from "../../api/index";

const state = {
  images: [],
  TypeNavList: [],
  floors: [],
};

const getters = {};
const actions = {
  async MockFloors({ commit }) {
    let floors = await requestMockFloors();
    commit("MOCKFLOORS", floors);
  },
};
const mutations = {
  MOCKFLOORS(state, floors) {
    // console.log(state, floor);
    state.floors = floors;
  },
};

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations,
};
